package sis.threadtest;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-08-01 21:59
 * @notify
 * @version 1.0
 */

public class ReentrantDome1{
    public static void main(String[] args) {
        final MyService start = new MyService();
        new Thread(new Runnable() {
            public void run() {
                start.serviceA();

            }
        }).start();

        new Thread(new Runnable() {
            public void run() {
                start.serviceB();
            }
        }).start();

        new Thread(new Runnable() {
            public void run() {
                start.serviceA();

            }
        }).start();
    }
}
